/* downloads.css */
.flink-tabs {
    display: flex;
    gap: 15px; /* 增加间距 */
    margin-bottom: 20px;
    justify-content: center; /* 水平居中 */
    background-color: #f9f9f9; /* 背景颜色 */
    padding: 15px; /* 内边距 */
    border-radius: 50px; /* 圆角 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 阴影 */
    flex-wrap: wrap; /* 允许换行 */
}

.flink-tab {
    cursor: pointer;
    padding: 5px 20px; /* 减小内边距以减小高度 */
    border: 1px solid #ccc;
    border-radius: 6px; /* 增加圆角 */
    transition: background-color 0.3s, transform 0.3s, color 0.3s; /* 增加颜色过渡 */
    font-family: Arial, sans-serif; /* 字体 */
    font-size: 14px; /* 减小字体大小 */
    color: #333; /* 默认字体颜色 */
    height: 40px; /* 设置固定高度 */
    display: flex; /* 使用 flex 布局 */
    align-items: center; /* 垂直居中 */
    background-color: #ffffff; /* 默认背景颜色 */
}

.flink-tab:hover {
    background-color: #0f9d58 !important; /* 悬停时的背景颜色 */
    color: #ffffff !important; /* 悬停时的字体颜色 */
    transform: translateY(-2px) !important; /* 向上移动 */
}

.flink-tab.active-tab {
    background-color: #ff2a68 !important; /* 选中时的背景颜色 */
    color: #ffffff !important; /* 选中时的字体颜色 */
}

.flink-content {
    display: none;
    position: relative;
    transition: opacity 0.3s;
}

.flink-content.active {
    display: block;
    opacity: 1;
}

/* 其他样式保持不变 */
body[data-type='stars'] #page {
    border: 0;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
}

body[data-type='stars'] .author-content.author-content-item.essayPage {
    height: 19rem;
    color: var(--anzhiyu-white);
    overflow: hidden;
    margin-top: -15px;
    height: 350px;
    margin-bottom: 10px;
}

body[data-type='stars'].flink#article-container .flink-desc {
    margin: 0;
    margin-top: -15px;
}

.flink#article-container .flink-list > .flink-list-item {
    background: var(--anzhiyu-white);
}

#article-container a:not([data-fancybox="gallery"]):not(.headerlink):not(.cf-friends-link):not(.tag-Link):not(.btn-anzhiyu):not( .no-text-decoration ) {
    height: 100px !important;
}

.flink#article-container .flink-desc {
    margin: 0.2rem 0px 0.5rem;
}

.flink#article-container .flink-list {
    overflow: auto;
    padding: 10px 10px 0px;
    text-align: center;
}

.flink#article-container .flink-list > .flink-list-item {
    position: relative;
    float: left;
    overflow: hidden;
    margin: 15px 7px;
    width: calc(25% - 12px);
    height: 90px;
    line-height: 17px;
    transform: translateZ(0px);
    transition: all 0.3s ease 0s;
}

@media screen and (max-width: 1200px) {
    .flink#article-container .flink-list > .flink-list-item {
        width: calc(25% - 12px) !important;
    }
}

@media screen and (max-width: 1024px) {
    .flink#article-container .flink-list > .flink-list-item {
        width: calc(33.3333% - 12px) !important;
    }
}

@media screen and (max-width: 768px) {
    .flink#article-container .flink-list > .flink-list-item {
        width: calc(50% - 12px) !important;
    }
}

@media screen and (max-width: 600px) {
    .flink#article-container .flink-list > .flink-list-item {
        width: calc(100% - 12px) !important;
    }
}

.flink#article-container .flink-list > .flink-list-item:hover {
    background: rgb(0, 108, 242);
    transform: scale(1.05);
}

.flink#article-container .flink-list > .flink-list-item a {
    color: var(--Jay-fontcolor);
    text-decoration: none;
}

.flink#article-container .flink-list > .flink-list-item a img {
    float: left;
    margin: 15px 10px;
    width: 60px;
    height: 60px;
    border-radius: 35px;
    transition: all 0.3s ease 0s;
}

.flink#article-container .flink-list > .flink-list-item a .img-alt {
    display: none;
}

.flink#article-container .flink-list > .flink-list-item a .flink-item-name {
    display: block;
    padding: 16px 10px 0px 0px;
    height: 40px;
    font-weight: 700;
    font-size: 1.43em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flink#article-container .flink-list > .flink-list-item a .flink-item-desc {
    display: block;
    padding: 16px 10px 16px 0px;
    height: 50px;
    font-size: 0.93em;
}

.flink#article-container .flink-list {
    padding: 0;
    margin: 1rem -6px 0 -6px;
    overflow-x: hidden;
}

.flink#article-container .flink-desc {
    margin: 0;
}

.flink#article-container .flink-list > .flink-list-item a .flink-item-desc {
    white-space: normal;
    padding: 5px 10px 16px 0;
    color: var(--Jay-fontcolor);
    text-align: left;
    height: 40px;
    text-overflow: ellipsis;
    opacity: 0.7;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.flink#article-container .flink-list > .flink-list-item:hover a .flink-item-desc {
    color: #ffffff;
    font-size: 15px;
}

.flink-list-item .flink-item-info {
    max-width: 136px;
    overflow: hidden;
}

.flink-list-item:hover .flink-item-info {
    max-width: 100%;
}

.flink#article-container .flink-list > .flink-list-item a .flink-item-name {
    text-align: left;
    font-size: 19px;
    color: var(--Jay-fontcolor);
}

.flink#article-container .flink-list > .flink-list-item:hover a .flink-item-name {
    color: var(--Jay-white);
}

.flink#article-container .flink-list > .flink-list-item a {
    display: flex;
    border: none;
}

.flink#article-container .flink-list > .flink-list-item a:hover {
    background: none;
}

/* 友链头像 */
.flink#article-container .flink-list > .flink-list-item a img {
    border-radius: 32px;
    margin: 15px 20px 15px 15px;
    transition: 0.3s;
    background: var(--Jay-background);
    min-width: 60px;
    min-height: 60px;
}

/* 悬浮状态头像 */
.flink#article-container .flink-list > .flink-list-item:hover a img {
    transition: 0.6s;
    width: 0;
    height: 0;
    opacity: 0;
    margin: 0.5rem;
    min-width: 0px;
    min-height: 0px;
}

.flink#article-container .flink-list > .flink-list-item a span {
    transition: 0.3s;
}

.flink#article-container .flink-list > .flink-list-item:hover a .flink-item-desc {
    overflow: inherit;
    width: 100%;
}

.flink#article-container .flink-list > .flink-list-item {
    margin: 6px 6px;
    transition: 0.3s;
    border-radius: 12px;
    transition-timing-function: ease-in-out;
    position: relative;
    width: calc(20% - -90px);
    border: var(--style-border);
    border: 1px solid #80c8f8;
    box-shadow: var(--Jay-shadow-border);
}

.flink#article-container .flink-list > .flink-list-item:hover {
    transform: scale(1);
    background: #49b1f5;
    border: var(--style-border-hover);
    box-shadow: var(--Jay-shadow-main);
}

@media screen and (min-width: 1300px) {
    .flink#article-container .flink-list > .flink-list-item:hover {
        transform: scale(1.03);
    }

    .flink#article-container .flink-list > .flink-list-item:active {
        transform: scale(0.97);
    }
}